import java.util.Scanner;

public class 菱形 {
    public static void main(String[] args){
        int lay = 4;
        for (int i = 1; i <= lay; i++) {
            for (int k = 1; k <= lay - i; k++)
                System.out.print(" ");
            for (int j = 1; j <= (i - 1) * 2 + 1; j++)
                if(i == lay && j == 1){
                    System.out.print("*");
                }else if (i == 1)
                    System.out.print("*");
                else
                    if (j == 1 || j == (i - 1) * 2 + 1)
                        System.out.print("*");
                    else
                        System.out.print(" ");
            System.out.println();
        }
        for (int i = lay; i > 0; i--) {
            for (int k = 0; k < lay - i; k++)
                System.out.print(" ");
            for (int j = 1; j <= (i - 1) * 2 + 1; j++)
                if (i == 1)
                    System.out.print("*");
                else
                    if (j == 1 || j == (i - 1) * 2 + 1)
                        System.out.print("*");
                    else
                        System.out.print(" ");
                    System.out.println();
        }
    }
}
